SOGetHostID


C Specification

#include <dolphin/socket.h>
long SOGetHostID( void );

Description

SOGetHostID() returns the current primary IPv4 address of the host.

Note: While DHCP or PPPoE host configuration is in progress, SOGetHostID() returns zero (SO_INADDR_ANY).

Arguments

None.

Return Values

The current primary IPv4 address of the host in the network byte order.

See Also